/*
 * Copyright (C), 2002-2017, 苏宁易购电子商务有限公司
 * FileName: StoreTask.java
 * Author:   15050536
 * Date:     2017年1月6日 上午11:33:09
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.po.mainpushnew;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 门店主推任务表对应的实体
 *
 * @author 15050536 石键平
 */
@Entity(name = "store_task")
public class StoreTask implements Serializable {

	/**
	 */
	private static final long serialVersionUID = -5500812112817502461L;

	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 总部任务id
	 */
	private Long hqTaskId;

	/**
	 * 大区任务id
	 */
	private Long areaTaskId;

	/**
	 * 门店编码
	 */
	private String storeCode;

	/**
	 * 门店名称
	 */
	private String storeName;

	/**
	 * 品类编码
	 */
	private String cateCode;

	/**
	 * 品类名称
	 */
	private String cateName;

	/**
	 * 目标数量
	 */
	private Integer targetNum;

	/**
	 * 月份
	 */
	private String month;

	/**
	 * 创建时间
	 */
	private Date createTime;

	public StoreTask() {

	}

	/**
	 * @param hqTaskId
	 * @param areaTaskId
	 * @param storeCode
	 * @param storeName
	 * @param cateCode
	 * @param cateName
	 * @param month
	 */
	public StoreTask(Long hqTaskId, Long areaTaskId, String storeCode, String storeName, String cateCode, String cateName, String month) {
		super();
		this.hqTaskId = hqTaskId;
		this.areaTaskId = areaTaskId;
		this.storeCode = storeCode;
		this.storeName = storeName;
		this.cateCode = cateCode;
		this.cateName = cateName;
		this.month = month;
	}

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.TABLE)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "hq_task_id")
	public Long getHqTaskId() {
		return hqTaskId;
	}

	public void setHqTaskId(Long hqTaskId) {
		this.hqTaskId = hqTaskId;
	}

	@Column(name = "area_task_id")
	public Long getAreaTaskId() {
		return areaTaskId;
	}

	public void setAreaTaskId(Long areaTaskId) {
		this.areaTaskId = areaTaskId;
	}

	@Column(name = "store_code")
	public String getStoreCode() {
		return storeCode;
	}

	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}

	@Column(name = "store_name")
	public String getStoreName() {
		return storeName;
	}

	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}

	@Column(name = "cate_code")
	public String getCateCode() {
		return cateCode;
	}

	public void setCateCode(String cateCode) {
		this.cateCode = cateCode;
	}

	@Column(name = "cate_name")
	public String getCateName() {
		return cateName;
	}

	public void setCateName(String cateName) {
		this.cateName = cateName;
	}

	@Column(name = "target_num")
	public Integer getTargetNum() {
		return targetNum;
	}

	public void setTargetNum(Integer targetNum) {
		this.targetNum = targetNum;
	}

	@Column(name = "month")
	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	@Column(name = "create_time")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}

}
